package org.tio.im.common.packets;

import org.tio.im.common.utils.ModelValueSerializer;
import com.alibaba.fastjson.annotation.JSONField;
/**
 * 版本: [1.0]
 * 功能说明: 
 * 作者: WChao 创建时间: 2017年7月26日 上午11:34:44
 */
public class ChatBody extends Message {	
	private String from;//来自channel id;
	private String to;//目标channel id;
	private String msgType;//消息类型;(如：0:text、1:image、2:voice、3:vedio、4:music、5:news)
	private Integer chatType;//聊天类型;(如公聊、私聊)
	private String content;//消息内容;
	private String group_id;//消息发到哪个群组;
	private String type;//双方协议类型，type 1 时表示对方已连接上我的socket,其他就是普通消息 sysUser表示是系统转发不用管，也不需要登录
	//聊天id
	private Long chatId;
	//商店id
	@JSONField(serializeUsing = ModelValueSerializer.class)
	private Long shopId;
	//用户id
	private Long userId;
	//性别 
	private Integer gender;
	//昵称
	private String nickName;
	//照片
	private String photo;
	//匹配度
	private Integer matching;
	//年龄
	private Integer age;
	//消息类型 1种梨信息，0普通消息，2接收梨消息
	//消息类型0 默认聊天消息 1房间里送礼物，2领取礼物,3@消息类型 4 霸屏消息
	private int flag;
	//是否是自己1是默认0
	private int isSelf;
	//模块id
	@JSONField(serializeUsing = ModelValueSerializer.class)
	private Long moduleId;
	//接收用户id
	private String moduleName;
	//接收用户头像
	private String moduleCover;	
	//0：未接收，1:已接收，2已过期
	private Integer status;
	//是否可领取1不可领取，0：可以领取满足条件
	private Integer enough;	
	//礼物id
	@JSONField(serializeUsing = ModelValueSerializer.class)
	private Long giftId;
	//商品名称
	private String giftName;
	//商品图片
	private String giftCover;
	//送梨匹配
	private Integer pearMatching;
	//送梨性别
	private Integer pearGender;
	//收取标志0：蓝精灵领取了菲儿的梨  , 1:你领取了蓝静儿的梨，2：蓝精灵领取了你的梨，
	private Integer receiveFlag;
	
	public final String getModuleCover() {
		return moduleCover;
	}
	public final void setModuleCover(String moduleCover) {
		this.moduleCover = moduleCover;
	}
	public String getFrom() {
		return from;
	}
	public ChatBody setFrom(String from) {
		this.from = from;
		return this;
	}
	public String getTo() {
		return to;
	}
	public ChatBody setTo(String to) {
		this.to = to;
		return this;
	}
	

	public final String getMsgType() {
		return msgType;
	}
	public ChatBody  setMsgType(String msgType) {
		this.msgType = msgType;
		return this;
	}
	public String getContent() {
		return content;
	}
	public ChatBody setContent(String content) {
		this.content = content;
		return this;
	}
	
	public String getGroup_id() {
		return group_id;
	}
	public ChatBody setGroup_id(String group_id) {
		this.group_id = group_id;
		return this;
	}
	public Integer getChatType() {
		return chatType;
	}
	public ChatBody setChatType(Integer chatType) {
		this.chatType = chatType;
		return this;
	}
	public final String getType() {
		return type;
	}
	public final void setType(String type) {
		this.type = type;
	}
	public final Long getChatId() {
		return chatId;
	}
	public final void setChatId(Long chatId) {
		this.chatId = chatId;
	}
	public final Long getShopId() {
		return shopId;
	}
	public final void setShopId(Long shopId) {
		this.shopId = shopId;
	}
	public final Long getUserId() {
		return userId;
	}
	public final void setUserId(Long userId) {
		this.userId = userId;
	}
	public final Integer getGender() {
		return gender;
	}
	public final void setGender(Integer gender) {
		this.gender = gender;
	}
	public final String getNickName() {
		return nickName;
	}
	public final void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public final String getPhoto() {
		return photo;
	}
	public final void setPhoto(String photo) {
		this.photo = photo;
	}
	public final Integer getMatching() {
		return matching;
	}
	public final void setMatching(Integer matching) {
		this.matching = matching;
	}
	public final Integer getAge() {
		return age;
	}
	public final void setAge(Integer age) {
		this.age = age;
	}
	public final int getFlag() {
		return flag;
	}
	public final void setFlag(int flag) {
		this.flag = flag;
	}
	public final int getIsSelf() {
		return isSelf;
	}
	public final void setIsSelf(int isSelf) {
		this.isSelf = isSelf;
	}
	public final Long getModuleId() {
		return moduleId;
	}
	public final void setModuleId(Long moduleId) {
		this.moduleId = moduleId;
	}
	public final String getModuleName() {
		return moduleName;
	}
	public final void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public final Integer getStatus() {
		return status;
	}
	public final void setStatus(Integer status) {
		this.status = status;
	}
	public final Integer getEnough() {
		return enough;
	}
	public final void setEnough(Integer enough) {
		this.enough = enough;
	}
	public final Long getGiftId() {
		return giftId;
	}
	public final void setGiftId(Long giftId) {
		this.giftId = giftId;
	}
	public final String getGiftName() {
		return giftName;
	}
	public final void setGiftName(String giftName) {
		this.giftName = giftName;
	}
	public final String getGiftCover() {
		return giftCover;
	}
	public final void setGiftCover(String giftCover) {
		this.giftCover = giftCover;
	}
	public final Integer getPearMatching() {
		return pearMatching;
	}
	public final void setPearMatching(Integer pearMatching) {
		this.pearMatching = pearMatching;
	}
	public final Integer getPearGender() {
		return pearGender;
	}
	public final void setPearGender(Integer pearGender) {
		this.pearGender = pearGender;
	}
	public final Integer getReceiveFlag() {
		return receiveFlag;
	}
	public final void setReceiveFlag(Integer receiveFlag) {
		this.receiveFlag = receiveFlag;
	}
	
}
